package java.single.hungry;

public class SingleHungry {
    private static SingleHungry singleHungry = new SingleHungry();
    
    private SingleHungry() {}
    /**
     * 饿汉式，在类加载时就初始化，容易产生垃圾
     * @return
     */
    private static SingleHungry getInstance() {
        return singleHungry;
    }

}
